<?php

include("includes/MovieRequest.class.php");
include("includes/MovieTheatre.class.php");
include("utils/utils.php");

# Form a MovieRequest object and begin processing
# This will eventually be a switch statement in order to support multiple
# response formats
$movieRequest = new MovieRequest( 90045, 0 ); # $_GET["zip"]
$response = getTheatresByZip( $movieRequest );

foreach ($response as $theatre) {
  echo $theatre->name . "<br />";
}

?>
